package org.csmz.class2333.innerclass;

public class DeviceController {
    private String controllerName;
    public DeviceController(String controllerName){
        this.controllerName = controllerName;
    }
    public void connecToDevice(){
        System.out.println("设备控制器成功连接到设备");
    }

    public enum Decice {}
}
class Decice{
    private String deviceName;
    public Decice(String deviceName){
        this.deviceName = deviceName;
    }
    public void poweon(){
        String controllerName = null;
        System.out.println(controllerName+"控制"+deviceName+"开机！");
    }
    public void poweOff(){
        String controllerName = null;
        System.out.println(controllerName+"控制"+deviceName+"关机！");
    }
}